//
//  zhuCeView.m
//  SELF 豆瓣
//
//  Created by dllo on 15/11/7.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "zhuCeView.h"

@implementation zhuCeView
-(instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        
        [self creatSubViews];
    }
    
    return self;
}


-(void)creatSubViews
{
    
    //铺设用户名label
    self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, 100, 65, 20)];
    [self addSubview:self.nameLabel];
    self.nameLabel.text = @"用户名:";
    //    self.nameLabel.backgroundColor = [UIColor redColor];
    [_nameLabel release];
    
    
    //铺设密码label
    self.passWorldLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.nameLabel.frame.origin.x, self.nameLabel.frame.origin.y+50, 62, 20)];
    [self addSubview:self.passWorldLabel];
    self.passWorldLabel.text = @"密码:";
    //    self.passWorldLabel.backgroundColor = [UIColor redColor];
    [_passWorldLabel release];
    
    
    //铺设用户名输入
    self.loginText = [[UITextField alloc]initWithFrame:CGRectMake(self.nameLabel.frame.origin.x+150, self.nameLabel.frame.origin.y, 140, 20)];
    [self addSubview:self.loginText];
    self.loginText.placeholder = @"请输入用户名";
    [_loginText release];
    
    
    //铺设密码输入
    self.passWordText = [[UITextField alloc]initWithFrame:CGRectMake(self.loginText.frame.origin.x, self.passWorldLabel.frame.origin.y, 140, 20)];
    [self addSubview:self.passWordText];
    self.passWordText.placeholder = @"请输入密码";
    [_passWordText release];
    
}


@end
